package cn.gotom.pinggu.pojos;


import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.gotom.core.pojos.BaseEntity;

/**
 * 
 * 数据采集数据表原料使用明细
 * 
 * @author peixere@qq.com
 * 
 * @version 2012-12-03
 * 
 */
@Entity
@Table(name = "Sjcjb_Whmx")
public class SjcjbWhmx extends BaseEntity implements Serializable
{
	private static final long serialVersionUID = 1L;

	/**
	 * 菜集表
	 */
	@JoinColumn(name = "sjcjb_id", referencedColumnName = "id")
	@ManyToOne
	private Sjcjb sjcjb;

	/**
	 * 月份
	 */
	@Column(length = 11)
	private int yf;

	/**
	 * 物耗种类
	 */
	@JoinColumn(name = "whzl_id", referencedColumnName = "id")
	@ManyToOne
	private Whzl whzl;

	/**
	 * 使用量
	 */
	@Column()
	private float syl;

	public Sjcjb getSjcjb()
	{
		return sjcjb;
	}

	public void setSjcjb(Sjcjb sjcjb)
	{
		this.sjcjb = sjcjb;
	}

	public int getYf()
	{
		return yf;
	}

	public void setYf(int yf)
	{
		this.yf = yf;
	}

	public float getSyl()
	{
		return syl;
	}

	public void setSyl(float syl)
	{
		this.syl = syl;
	}

	public Whzl getWhzl()
	{
		return whzl;
	}

	public void setWhzl(Whzl whzl)
	{
		this.whzl = whzl;
	}
}